<?php
CLASS row_action EXTENDS STDClass {
   public function __construct($options) {
      foreach ($options as $property_name=>$option) {
         $this->$property_name = $option;
      }
   }
   public function href($row) {
      $args = array();

      #debug::var_dump($row);

      foreach ( $this->fields as $field ) {
         $args[] = $row[$field];
      }

      return vsprintf($this->format,$args);
   }
}